package com.china08.yxyapi.entity.mg.esbag;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * @author Richard.Wang 授课报告--当前最新记录的版本号
 * @descript
 */
@Document(collection = "yxy.tea.esbag.teaching.latest.version")
public class YxyEsbagTeachingLatestVersion extends MongoBaseEntityNoId {

    private static final long serialVersionUID = -295018179334903779L;

    /**
     * 授课包id</br>
     * example: 3434223_3423432423
     */
    @Id
    private String id;

    /**
     * 最新版本号
     */
    @Field(value = "latest_version")
    private Double latestVersion = 1.0;

    /**
     * 上课时长
     */
    @Field(value = "user_time")
    private Long userTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Double getLatestVersion() {
        return latestVersion;
    }

    public void setLatestVersion(Double latestVersion) {
        this.latestVersion = latestVersion;
    }

    public Long getUserTime() {
        return userTime;
    }

    public void setUserTime(Long userTime) {
        this.userTime = userTime;
    }

}
